<?
    class LinkButton extends HTMLControl {
        function __construct($href,$title = null) {
            parent::__construct("a",null,array("href"=>$href));
            
            $button = new HTMLControl("input");
            $button->SetAttribute("class","arrowbutton");
            $button->attributes->type = "button";
            $button->attributes->value = ($title ? $title : $href);
            
            $this->AddChild($button);
        }
    }
    
    class LinkList extends HTMLControl {
        private $_separator;
        private $_count = 0;
        function __construct($separator = " &#9679; ") {
            parent::__construct("div");
            
            $this->_separator = $separator;
            $this->_count = 0;
        }
        
        function AddLink($href, $title = null) {
            $title = ($title == null ? $href : $title);
            
            if ($this->_count > 0) {
                $sep = new HTMLControl("span",$this->_separator);
                $this->AddChild($sep);
            }
            $link = new HTMLControl("a",$title,array("href"=>$href));
            
            $this->AddChild($link);
            $this->_count++;
        }
    }
?>